package com.iatinspur.controller;

import com.iatinspur.dubbo.service.ProviderService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {
    @DubboReference(version = "1.0.0")
    private ProviderService providerService;



    @GetMapping("/getResult")
    public String getResult(){
        return "绿飞，"+providerService.getInfo();
    }
}
